home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 3 / AGA Experience Volume 3 (1997)(NFA - SAdENESS)[!].iso / software / utilities / wb_tools / screentab / installation-script < prev    next >
Text File  |  1997-03-25  |  20KB  |  746 lines

  1. ; Installation-Script for ScreenTab V3.1
  2. ; Author: Michael Link
  3. ; First creation : 28.10.94
  4. ; Last change    : 24.03.97
  5.  
  6. ; @s English string section
  7.  
  8. (set #bad-version
  9.     (cat "\n\nSorry, but ScreenTab requires\n"
  10.          "at least Kickstart 2.04"
  11.     )
  12. )
  13.  
  14. (set #help-dir
  15.     (cat "You must enter the name of the directory, in which\n"
  16.          "ScreenTab shall be installed.\n\n"
  17.          "If you want ScreenTab to be active everytime you\n"
  18.          "start the computer, enter the directory\n"
  19.          "\"SYS:WBStartup\", which is the default directory."
  20.     )
  21. )
  22.  
  23. (set #dir-request
  24.     (cat "Please enter the destination directory\n"
  25.          "for ScreenTab"
  26.     )
  27. )
  28.  
  29. (set #prefs-dir-request
  30.     (cat "Please enter the destination directory\n"
  31.          "for the ScreenTab-Preferences"
  32.     )
  33. )
  34.  
  35. (set #which-scrkey
  36.     (cat "\n\nWith which key combination shall the\n"
  37.          "screens be switched ?\n\n"
  38.          "(Don't use any of the SHIFT-Keys, because\n"
  39.          "ScreenTab needs them for back-switching !)"
  40.     )
  41. )
  42.  
  43. (set #which-winkey
  44.     (cat "\n\nWith which key combination shall the\n"
  45.          "windows be switched ?\n\n"
  46.          "(Don't use any of the SHIFT-Keys, because\n"
  47.          "ScreenTab needs them for back-switching !)"
  48.     )
  49. )
  50.  
  51. (set #msg-imagedir
  52.     (cat "\n\nThe destination directory already contains\n"
  53.          "a ScreenTab executable which will be updated.\n"
  54.          "All icon settings will be preserved, but you\n"
  55.          "should create a new tool-type IMAGEDIR after\n"
  56.          "the installation which points to the directory\n"
  57.          "containing your images."
  58.     )
  59. )
  60.  
  61. (set #write-tooltypes
  62.     "\nWriting Tool-Types ..."
  63. )
  64.  
  65. (set #old-prefs-file
  66.     (cat "\n\nThere's an older preferences file installed\n"
  67.          "on your system. If you want to use these\n"
  68.          "preferences, they must be converted.\n\n"
  69.          "Do you want to do this ?"
  70.     )
  71. )
  72.  
  73. (set #ask-plugins "\nWhich PlugIn-Modules do you want to install ?\n")
  74.  
  75. (set #ask-plugins-help
  76.     (cat "PlugIn-Modules add new functionality to the Start-Button."
  77.          "They can i. e. control commodities, eject changeable media "
  78.          "or close windows.\n\n"
  79.          "Please read the documentation for details."
  80.     )
  81. )
  82.  
  83. (set #ask-plugin-dir "\nChoose a directory for the modules ...\n")
  84.  
  85. (set #ask-brushes
  86.     (cat "\n\nDo you want to install the\n"
  87.          "included image-files (MWB-Style) ?"
  88.     )
  89. )
  90.  
  91. (set #ask-brushes-dir
  92.     (cat "In which directory shall I create\n"
  93.          "the ScreenTab-Images-Directory ?"
  94.     )
  95. )
  96.  
  97. (set #extracting-brushes "Extracting image files ...")
  98.  
  99. (set #ask-brushes-message
  100.     (cat "\n\n\nH I N T"
  101.          "\n\nThe easiest way to chose an image for an\n"
  102.          "application or a startup node is to drag the icon\n"
  103.          "of the image onto the image path gadget !"
  104.     )
  105. )
  106.  
  107. (set #ask-catalogs
  108.     "\nWhich language catalogs shall be installed ?\n"
  109. )
  110.  
  111. (set #ask-scrnotify
  112.     (cat "\n\nIf available, ScreenTab uses\n"
  113.          "the ScreenNotify-Library to react on changes\n"
  114.          "of the Workbench resolution.\n\n"
  115.          "Do you want to install this library ?"
  116.     )
  117. )
  118.  
  119. (set #ask-scrnotify-help
  120.     (cat "The usage of this library is optional. "
  121.          "But if the Workbench resolution is changed "
  122.          "without this library installed, it can "
  123.          "cause system instability or crashes.\n\n"
  124.          "If you don't want to use an installed "
  125.          "ScreenNotify-Library, set the tool-type "
  126.          "USESCREENNOTIFY to NO."
  127.     )
  128. )
  129.  
  130. (set #ask-wbstarth
  131.     (cat "\n\nScreenTab uses the WBStart-Handler by\n"
  132.          "Stefan Becker to emulate a program start\n"
  133.          "via Workbench.\n\n"
  134.          "Do you want to install the handler now ?"
  135.     )
  136. )
  137.  
  138. (set #ask-wbstartl
  139.     (cat "\n\nScreenTab uses the WBStart-Library by\n"
  140.          "Stefan Becker to emulate a program start\n"
  141.          "via Workbench.\n\n"
  142.          "Do you want to install the library now ?"
  143.     )
  144. )
  145.  
  146. (set #copy-screentab
  147.     "\n\nCopying ScreenTab ..."
  148. )
  149.  
  150. (set #copy-screentabprefs
  151.     "\n\nCopying ScreenTabPrefs ..."
  152. )
  153.  
  154. (set #copy-plugin
  155.     "\n\nCopying PlugIn-Module ..."
  156. )
  157.  
  158. (set #copy-brushes
  159.     "\n\nCopying Image-Files ..."
  160. )
  161.  
  162. (set #copy-scrnotify
  163.     "\n\nCopying ScreenNotify-Library ..."
  164. )
  165.  
  166. (set #copy-wbstarth
  167.     "\n\nCopying WBStart-Handler ..."
  168. )
  169.  
  170. (set #copy-wbstartl
  171.     "\n\nCopying WBStart-Libraries ..."
  172. )
  173.  
  174. (set #copy-catalogs
  175.     "\n\nCopying language catalogs ..."
  176. )
  177.  
  178. (set #catalog-choice-default 0)
  179.  
  180. (set #lang-german   "Deutsch" )
  181. (set #lang-italian  "Italiano" )
  182. (set #lang-french   "Français" )
  183.  
  184. (set #error-conversion
  185.     "\n\nError during conversion !!!"
  186. )
  187.  
  188. (set #error-prefs
  189.     (cat "\n\nAn error occured during checking of the version\n"
  190.          "of the preferences file. Probably this happened\n"
  191.          "because you are using a file of the first ScreenTab\n"
  192.          "version (1.13).\n\n"
  193.          "This version isn't supported anymore !"
  194.     )
  195. )
  196. ; @e
  197.  
  198. ; @s German string section
  199.  
  200. (if (= @language "deutsch")
  201. (
  202.  
  203. (set #bad-version
  204.     (cat "\n\nSorry, aber ScreenTab läuft erst ab\n"
  205.          "Kickstart 2.04."
  206.     )
  207. )
  208.  
  209. (set #help-dir
  210.     (cat "An dieser Stelle müssen Sie angeben, in welchem\n"
  211.       "Verzeichnis ScreenTab installiert werden soll.\n\n"
  212.       "Wenn ScreenTab gleich nach dem Start des Computers\n"
  213.       "aktiv sein soll, sollten Sie als Zielverzeichnis\n"
  214.       "\"SYS:WBStartup\" angeben."
  215.     )
  216. )
  217.  
  218. (set #dir-request
  219.     (cat "Geben Sie jetzt das Verzeichnis an,\n"
  220.          "in dem ScreenTab installiert werden soll."
  221.     )
  222. )
  223.  
  224. (set #prefs-dir-request
  225.     (cat "Geben Sie jetzt das Verzeichnis an, in das das\n"
  226.          "Voreinstellungsprogramm kopiert werden soll."
  227.     )
  228. )
  229.  
  230. (set #which-scrkey
  231.     (cat "\n\nMit welcher Tastenkombination sollen die\n"
  232.          "Screens umgeschaltet werden ?\n\n"
  233.          "(Bitte geben Sie hier keine SHIFT-Taste an, da\n"
  234.          "diese für das Zurückblättern gebraucht werden !)"
  235.     )
  236. )
  237.  
  238. (set #which-winkey
  239.     (cat "\n\nMit welcher Tastenkombination sollen die\n"
  240.          "Fenster umgeschaltet werden ?\n\n"
  241.          "(Bitte geben Sie hier keine SHIFT-Taste an, da\n"
  242.          "diese für das Zurückblättern gebraucht werden !)"
  243.     )
  244. )    
  245.  
  246. (set #msg-imagedir
  247.     (cat "\n\nDas Zielverzeichnis enthält bereits eine\n"
  248.          "ScreenTab-Version, die hiermit ersetzt wird.\n"
  249.          "Alle Einstellungen werden erhalten, allerdings\n"
  250.          "sollten Sie einen neuen Tool-Type IMAGEDIR anlegen,\n"
  251.          "der auf das Verzeichnis zeigt, das die Images enthält."
  252.     )
  253. )
  254.  
  255. (set #write-tooltypes
  256.     "\nSchreibe Tool-Types ..."
  257. )
  258.  
  259. (set #old-prefs-file
  260.     (cat "\n\nEine ältere Voreinstellungsdatei ist auf\n"
  261.          "ihrem System installiert. Um diese Einstellungen\n"
  262.          "mit der neuen Version nutzen zu können, muß\n"
  263.          "eine Konvertierung vorgenommen werden.\n\n"
  264.          "Wollen Sie das ?"
  265.     )
  266. )   
  267.  
  268. (set #ask-plugins "\nWelche PlugIn-Module wollen Sie installieren ?\n")
  269.  
  270. (set #ask-plugins-help
  271.     (cat "PlugIn-Module erweitern die Funktionalität des "
  272.          "Start-Buttons. Mit ihnen können beispielsweise "
  273.          "die Commodities kontrolliert, Wechselmedien "
  274.          "ausgeworfen oder Fenster geschlossen werden.\n\n"
  275.          "Bitte lesen Sie dazu die Dokumentation."
  276.     )
  277. )
  278.  
  279. (set #ask-plugin-dir
  280.     "\nBitte wählen Sie ein Verzeichnis für die PlugIn-Module ...\n"
  281. )
  282.  
  283. (set #ask-brushes
  284.     (cat "\n\nWollen Sie die mitgelieferten Image-Dateien\n"
  285.          "installieren (MWB-Stil) ?"
  286.     )
  287. )
  288.  
  289. (set #ask-brushes-dir
  290.     (cat "In welches Verzeichnis sollen die Image-Dateien\n"
  291.          "kopiert werden ? Ein Verzeichnis mit dem Namen\n"
  292.          "'ScreenTab-Images' wird dort angelegt"
  293.     )
  294. )
  295.  
  296. (set #extracting-brushes "Entpacke Image-Dateien ...")
  297.  
  298. (set #ask-brushes-message
  299.     (cat "\n\n\nH I N W E I S"
  300.          "\n\nAm einfachsten ordnen Sie einer Anwendung\n"
  301.          "oder einem Startup-Eintrag ein Image zu, indem\n"
  302.          "Sie das Icon des Image auf das Eingabefeld für\n"
  303.          "den Image-Pfad ziehen."
  304.     )
  305. )
  306.  
  307. (set #ask-catalogs
  308.     "\nWelche Sprach-Kataloge sollen installiert werden ?\n"
  309. )
  310.  
  311. (set #ask-scrnotify
  312.     (cat "\n\nScreenTab benutzt, falls vorhanden,\n"
  313.          "die ScreenNotify-Library, um auf Wechsel der\n"
  314.          "Workbench-Auflösung reagieren zu können.\n\n"
  315.          "Wollen Sie diese Library installieren ?"
  316.     )
  317. )
  318.  
  319. (set #ask-scrnotify-help
  320.     (cat "Die Benutzung dieser Library ist optional. "
  321.          "Allerdings kann es zu Fehlern oder Abstürzen "
  322.          "kommen, wenn die Workbench-Auflösung ohne "
  323.          "installierte Library gewechselt wird.\n\n"
  324.          "Wenn Sie auf die ScreenNotify-Library "
  325.          "verzichten wollen, können Sie dies gezielt "
  326.          "mit dem Tool-Type USESCREENNOTIFY unterbinden, "
  327.          "indem Sie ihn auf NO setzen."
  328.     )
  329. )
  330.  
  331. (set #ask-wbstarth
  332.     (cat "\n\nScreenTab braucht den WBStart-Handler von\n"
  333.          "Stefan Becker, um einen Programmstart über die\n "
  334.          "Workbench zu emulieren.\n\n"
  335.          "Wollen Sie den Handler jetzt installieren ?"
  336.     )
  337. )
  338.  
  339. (set #ask-wbstartl
  340.     (cat "\n\nScreenTab braucht die WBStart-Library von\n"
  341.          "Stefan Becker, um einen Programmstart über die\n"
  342.          "Workbench zu emulieren.\n\n"
  343.          "Wollen Sie die Library jetzt installieren ?\n"
  344.     )
  345. )
  346.  
  347. (set #copy-screentab
  348.     "\n\nKopiere ScreenTab ..."
  349. )
  350.  
  351. (set #copy-screentabprefs
  352.     "\n\nKopiere ScreenTabPrefs ..."
  353. )
  354.  
  355. (set #copy-plugin
  356.     "\n\nKopiere PlugIn-Module ..."
  357. )
  358.  
  359. (set #copy-brushes
  360.     "\n\nKopiere Image-Dateien ..."
  361. )
  362.  
  363. (set #copy-scrnotify
  364.     "\n\nKopiere ScreenNotify-Library ..."
  365. )
  366.  
  367. (set #copy-wbstarth
  368.     "\n\nKopiere WBStart-Handler ..."
  369. )
  370.  
  371. (set #copy-wbstartl
  372.     "\n\nKopiere WBStart-Libraries ..."
  373. )
  374.  
  375. (set #copy-catalogs
  376.     "\n\nKopiere Sprachkataloge ..."
  377. )
  378.  
  379. (set #catalog-choice-default 1)
  380.  
  381. (set #error-conversion
  382.     "\n\nFehler beim Konvertieren !!!"
  383. )
  384.  
  385. (set #error-prefs
  386.     (cat "\n\nBeim der Versions-Überprüfung der Voreinstellungs-\n"
  387.          "datei trat ein Fehler auf. Wahrscheinlich benutzen\n"
  388.          "Sie noch eine Datei der ersten ScreenTab-Version (1.13).\n\n"
  389.          "Diese wird jedoch nicht mehr unterstützt !"
  390.     )
  391. )
  392.  
  393. )
  394. ) ; endif
  395.  
  396. ; @e
  397.  
  398. ; @s Different version numbers
  399.  
  400. (set intuition_vernum (getversion "intuition.library" (resident)))
  401. (set intuition_ver    (shiftright intuition_vernum 16))
  402. (set locale_vernum    (getversion "locale.library" (resident)))
  403. (set locale_ver       (shiftright locale_vernum 16))
  404. (set scrntfy_vernum   (getversion "LIBS:screennotify.library"))
  405. (set scrntfy_ver      (shiftright scrntfy_vernum 16))
  406. (set wbstarth_vernum  (getversion "L:WBStart-Handler"))
  407. (set wbstarth_ver     (shiftright wbstarth_vernum 16))
  408. (set wbstartl_vernum  (getversion "LIBS:wbstart.library"))
  409. (set wbstartl_ver     (shiftright wbstartl_vernum 16))
  410.  
  411. ; @e
  412.  
  413. ; @s check OS version and CPU
  414. (if (< intuition_ver 37)
  415.     (abort #bad-version)
  416. )
  417.  
  418. (set #cpu020 (not (patmatch "68000|68010" (database "cpu"))))
  419. ; @e
  420.  
  421. ; @s Ask for destination directory
  422.  
  423. (set DIR (askdir (prompt #dir-request)
  424.                  (help #help-dir)
  425.                  (default "SYS:WBStartup")
  426.          )
  427. )
  428.  
  429. (set PREFSDIR (askdir (prompt #prefs-dir-request)
  430.                       (help @askdir-help)
  431.                       (default "SYS:Prefs")
  432.               )
  433. )
  434.  
  435. (if (askbool (prompt #ask-brushes)
  436.              (help)
  437.              (default 1)
  438.     )
  439.     (
  440.         (set #extract-images 1)
  441.  
  442.         (set #brush-dir (askdir (prompt #ask-brushes-dir)
  443.                                 (help @askdir-help)
  444.                                 (default "SYS:Prefs")
  445.                         )
  446.         )
  447.  
  448.         (set #brush-dir (tackon #brush-dir "ScreenTab-Images"))
  449.     )
  450. )
  451.  
  452. ; @e
  453.  
  454. ; @s Tool-Types and copy main program
  455.  
  456. (set @default-dest DIR)
  457.  
  458. (set #oldversion-exists (exists (tackon DIR "ScreenTab") (noreq) ) )
  459.  
  460. ; we must check if an old version is still in this directory
  461. (if (= #oldversion-exists 0)
  462.     (
  463.         (set SWITCHKEY (askstring (prompt #which-scrkey)
  464.                                   (help @askstring-help)
  465.                                   (default "LCommand Tab")
  466.                        )
  467.         )  
  468.  
  469.         (set WINSWITCHKEY (askstring (prompt #which-winkey)
  470.                                   (help @askstring-help)
  471.                                   (default "LCommand `")
  472.                           )
  473.         )
  474.  
  475.         (tooltype (prompt #write-tooltypes)
  476.                   (help)
  477.                   (if (= #cpu020 0) (dest "ScreenTab") (dest "ScreenTab.020"))
  478.                   (settooltype "SWITCHKEY" SWITCHKEY)
  479.                   (settooltype "WINSWITCHKEY" WINSWITCHKEY)
  480.                   (if (= #extract-images 1) (settooltype "IMAGEDIR" #brush-dir) )
  481.         )
  482.     )
  483.     (        
  484.         (message #msg-imagedir)
  485.     )
  486. )
  487.  
  488. (copyfiles (prompt #copy-screentab)
  489.            (help @copyfiles-help)
  490.            (if (= #cpu020 0) (source "ScreenTab") (source "ScreenTab.020"))
  491.            (newname "ScreenTab")
  492.            (dest DIR)
  493.            (if (= #oldversion-exists 0) (infos) )
  494. )
  495.  
  496. (set @default-dest PREFSDIR)
  497.  
  498. (copyfiles (prompt #copy-screentabprefs)
  499.            (help @copyfiles-help)
  500.            (source "Prefs/ScreenTabPrefs")
  501.            (dest PREFSDIR)
  502.            (infos)
  503. )
  504.  
  505. ; @e
  506.  
  507. ; @s Checking for preferences file and need for conversion
  508.  
  509. (if (exists "ENVARC:ScreenTab.prefs")
  510.     (
  511.         (set #check-prefsversion (run "HandleScrTab PREFSVERSION" (safe) ) )
  512.  
  513.         (if (> #check-prefsversion 1)
  514.             (message #error-prefs)
  515.         )
  516.  
  517.         (if (= #check-prefsversion 1)
  518.             (if (askbool (prompt #old-prefs-file)
  519.                          (help)
  520.                          (default 1)
  521.                 )
  522.                 (if (> (run "HandleScrTab CONVERTPREFS" (safe) ) 0)
  523.                     (copyfiles (prompt)
  524.                                (help)
  525.                                (source "T:SCRT.TMP")
  526.                                (dest "ENVARC:")
  527.                                (newname "ScreenTab.prefs")
  528.                     )
  529.                     (message #error-conversion)
  530.                 )
  531.             )
  532.         )
  533.     )
  534.     (copyfiles (prompt #copy-preferences)
  535.                (help)
  536.                (source "ScreenTab.prefs")
  537.                (dest "ENVARC:")
  538.     )
  539. )
  540.  
  541. ; @e
  542.  
  543. ; @s Installation of the PlugIn-Modules
  544.  
  545. (set #plugin-choice (askoptions (prompt #ask-plugins)
  546.                                 (help #ask-plugins-help)
  547.                                 (choices "Commodities"
  548.                                          "Windows"
  549.                                          "SysTools"
  550.                                          "PasteClip")
  551.                     )
  552. )
  553.  
  554. (if #plugin-choice
  555.     (
  556.         (set #plugin-dir (askdir (prompt #ask-plugin-dir)
  557.                                  (help @askfile-help)
  558.                                  (default "LIBS:plugins")
  559.                          )
  560.         )
  561.  
  562.         (set n 0)
  563.  
  564.         (while (set #plugin (select n "commodities.plugin"
  565.                                       "windows.plugin"
  566.                                       "systools.plugin"
  567.                                       "pasteclip.plugin"
  568.                                       ""
  569.                             )
  570.                )
  571.                (if (IN #plugin-choice n)
  572.                    (
  573.                        (set #plugin-source (tackon "PlugIns" #plugin))
  574.  
  575.                        (copylib (prompt #copy-plugin)
  576.                                 (help)
  577.                                 (source #plugin-source)
  578.                                 (dest #plugin-dir)
  579.                        )
  580.                    )
  581.                )
  582.  
  583.                (set n (+ n 1))
  584.         )
  585.     )
  586. )
  587.  
  588. ; @e
  589.  
  590. ; @s Extracting of the images
  591. (if (= #extract-images 1)
  592.     (
  593.         (makedir #brush-dir
  594.                  (prompt)
  595.                  (help @makedir-help)
  596.                  (infos)
  597.         )
  598.  
  599.         (set #exelha (cat "lha e Images.lha \""
  600.                           #brush-dir "/\""
  601.                      )
  602.         )
  603.  
  604.         (working #extracting-brushes)
  605.  
  606.         (run #exelha)
  607.  
  608.         (message #ask-brushes-message (all) )
  609.     )
  610. )
  611.  
  612. ; @e
  613.  
  614. ; @s Installation of the ScreenNotify-Library
  615.  
  616. (if (= scrntfy_ver 0)
  617.     (if (askbool (prompt #ask-scrnotify)
  618.                  (help   #ask-scrnotify-help)
  619.                  (default 1)
  620.         )
  621.         (copylib (prompt #copy-scrnotify)
  622.                  (help)
  623.                  (source "Libs/screennotify.library")
  624.                  (dest   "LIBS:")
  625.                  (confirm)
  626.         )
  627.     )
  628. )
  629.  
  630. ; @e
  631.  
  632. ; @s Installation of the WBStart-Library or -Handler
  633.  
  634. ; we can only use WBStart-Library with OS 3.x
  635. (if (>= intuition_ver 39)
  636.     (if (= wbstartl_ver 0)
  637.         (if (askbool (prompt #ask-wbstartl)
  638.                      (help)
  639.                      (default 1)
  640.             )
  641.             (
  642.                 (copylib (prompt #copy-wbstartl)
  643.                          (help)
  644.                          (source "Libs/wbstart.library")
  645.                          (dest   "LIBS:")
  646.                          (confirm)
  647.                 )
  648.                 (copylib (prompt #copy-wbstartl)
  649.                          (help)
  650.                          (source "Libs/dospath.library")
  651.                          (dest   "LIBS:")
  652.                          (confirm)
  653.                 )
  654.             )
  655.         )
  656.     )
  657.     (if (= wbstarth_ver 0)
  658.         (if (askbool (prompt #ask-wbstarth)
  659.                      (help)
  660.                      (default 1)
  661.             )
  662.             (copylib (prompt #copy-wbstarth)
  663.                      (help)
  664.                      (source "L/WBStart-Handler")
  665.                      (dest   "L:")
  666.                      (confirm)
  667.             )
  668.         )
  669.     )
  670. )
  671.  
  672. ; @e
  673.  
  674. ; @s Installation of the catalogs
  675.  
  676. (if (>= locale_ver 38)
  677.     (
  678.         (set #catalogs (askoptions (prompt #ask-catalogs)
  679.                                    (help)
  680.                                    (choices #lang-german #lang-french)
  681.                                    (default #catalog-choice-default)
  682.                        )
  683.         )
  684.  
  685.         (if (> #catalogs 0)
  686.             (
  687.                 (set n 0)
  688.  
  689.                 (while (set #language (select n "deutsch" "français" ""))
  690.  
  691.                     (if (IN #catalogs n)
  692.                         (
  693.                             (set #dstpath (tackon (tackon "LOCALE:Catalogs" #language) "ScreenTab"))
  694.  
  695.                             (if (NOT (exists #dstpath))
  696.                                 (makedir #dstpath
  697.                                          (prompt)
  698.                                          (help @makedir-help)
  699.                                 )
  700.                             )
  701.  
  702.                             (set #srcpath (cat "catalogs/"
  703.                                                #language
  704.                                           )
  705.                             )
  706.  
  707.                             (copyfiles (prompt #copy-catalogs)
  708.                                        (help)
  709.                                        (source #srcpath)
  710.                                        (dest   #dstpath)
  711.                                        (pattern "#?.catalog")
  712.                             )
  713.  
  714.                             (if #plugin-choice
  715.                                 (
  716.                                     (set #dstpath-plugins (tackon #dstpath "PlugIns"))
  717.  
  718.                                     (if (NOT (exists #dstpath-plugins))
  719.                                         (makedir #dstpath-plugins
  720.                                                  (prompt)
  721.                                                  (help @makedir-help)
  722.                                         )
  723.                                     )
  724.  
  725.                                     (set #srcpath-plugins (tackon #srcpath "PlugIns"))
  726.  
  727.                                     (copyfiles (prompt #copy-catalogs)
  728.                                                (help)
  729.                                                (source #srcpath-plugins)
  730.                                                (dest   #dstpath-plugins)
  731.                                                (pattern "#?.catalog")
  732.                                     )
  733.                                 )
  734.                             )
  735.                         )
  736.                     )
  737.  
  738.                     (set n (+ n 1))
  739.                 )
  740.             )
  741.         )
  742.     )
  743. )
  744.  
  745. ; @e
  746.